package com.woniuxy.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("parking")
public class Parking {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String numbers;
    private Integer status;
    private Integer ownerId;
    private String description;
    //关联业主表,一个车位对应一个车主
    @TableField(exist = false)
    private Owner owner;
}
